package com.shiguiwu.springmybatis.designpattern.proxy.mybatisspring;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description:
 * @author: stone
 * @date: Created by 2021/8/31 21:43
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.proxy.mybatisspring
 */
public class ProxyTests {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/mybatis-spring.xml");
        IUserDao bean = context.getBean(IUserDao.class);
        bean.queryById("100021");
    }
}
